﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace MC.RideEventMVC.Models
{
    public enum Sexe
    {
        Homme, Femme    
    }

    public class MemberModel
    {
        
        public int Id { get; set; }

        [Required(ErrorMessage="Information obligatoire")]
        [Display(Name="Nom *")]
        [StringLength(50)]
        public string Name { get; set; }

        [Required(ErrorMessage="Information obligatoire")]
        [StringLength(50)]
        [Display(Name = "Prénom *")]
        public string FirstName { get; set; }

        [Required(ErrorMessage="Information obligatoire")]
        [DataType(DataType.Date)]
        [Display(Name = "Date de Naissance *")]
        public DateTime Birthday { get; set; }

        [Required(ErrorMessage="Information obligatoire")]
        [StringLength(120)]
        [Display(Name = "Adresse *")]
        public string Address { get; set; }

        [Required(ErrorMessage="Information obligatoire")]
        [StringLength(80)]
        [Display(Name = "Ville *")]
        public string City { get; set; }

        [Required(ErrorMessage="Information obligatoire")]
        [StringLength(5)]
        [Display(Name = "Code Postal *")]
        public string CP { get; set; }

        [Required(ErrorMessage="Information obligatoire")]
        [StringLength(1)]
        [Display(Name = "Sexe *")]
        public string Sexe { get; set; }

        [DataType(DataType.Date)]
        [Display(Name = "Date d'obtention du permis de conduire")]
        public string DriveLicenseDate { get; set; }
    }
}